/*
* Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: nfcaiwwrapper.h
*/

#ifndef NFCAIWWRAPPER_H
#define NFCAIWWRAPPER_H

#include <QObject>

class CNfcAiwEngine;

//! A wrapper class between Qt and Symbian implementations.
/*!
  This class works as a wrapper between Qt and Symbian implementations. Symbian AIW
  service is started from Qt application side and the requested data is passed back
  using Qt signalling system.
 */
class NfcAiwWrapper : public QObject
{
    Q_OBJECT
public:
    //! Constructor.
    NfcAiwWrapper();

    //! Destructor.
    virtual ~NfcAiwWrapper();

    //! Starts Bluetooth Easy Setup, which requests Bluetooth information from a remote device via an NFC connection.
    void startEasySetup();

Q_SIGNALS:
    //! Signalled when remote Bluetooth connection info is received.
    /*!
      \param connectionInfo The Bluetooth information from remote device.
     */
    void connectionInfoReceived( const QByteArray &connectionInfo );

private:
    CNfcAiwEngine *m_aiwEngine; //!< Pointer to the AIW engine class.

private:
    //! Friend class definitions.
    friend class CNfcAiwEngine;
};

#endif // NFCAIWWRAPPER_H
